package Staticstudy;

import java.util.Arrays;

public class static3 {
    public static void main(String[] args) {
        int[] arrayA={1,2,3,4};
        int[] arrayB={19,45,26,34,2};
        String int_str = Arrays.toString(arrayA);//将数组按默认格式转化为字符串
        System.out.println(int_str);//[1, 2, 3, 4]

        Arrays.sort(arrayB);//对数组进行排序
        System.out.println(Arrays.toString(arrayB));//[2, 19, 26, 34, 45]
    }
}
